//
// Created by 田建昆 on 2020/12/21.
//

#include <stack.h>
#include <stdio.h>

static void testStack() {
    l_stack *stack = malloc(sizeof(l_stack));
    stack_init(stack, NULL);

    stack_push(stack, "abc");
    stack_push(stack, "def");
    void *data;
    while (stack_size(stack) != 0) {
        stack_pop(stack, &data);
        printf("%s\n", (char *) data);
    }


}

int main() {
    testStack();
    return 0;

}
